#ifndef __TwShader_Water_H__
#define __TwShader_Water_H__

#include "TwD3DHeaders.h"
#include "TwShader.h"

class TwWater;

class TwShaderWater : public TwShader
{
public:
	TwShaderWater(TwWater* water);
	~TwShaderWater();
	
	void update(TimeValue t);
	

protected:
	virtual void renderImp(TwCamera* camera);
	virtual bool initialize();

protected:
	D3DXHANDLE mTechnique;
	D3DXHANDLE mWaveTexture;
	D3DXHANDLE mEnvTexture;
	D3DXHANDLE mTime;
	D3DXHANDLE mViewProj;
	D3DXHANDLE mWorldViewProj;

	TimeValue mCurrentTime;
	TimeValue mStartTime;

	TwWater* mWater;
};

#endif //__TwShaderWater_H__